import  request from  "../../until/axios"
export const librarylist = (params) =>
  request({
    method: "get",
    url: "/prod-api/api/digital-library/library/list",
    params,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });
export const libraryDetail = (id) =>
  request({
    method: "get",
    url: "/prod-api/api/digital-library/library/"+id,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });
export const commentlist = (params) =>
  request({
    method: "get",
    url: "/prod-api/api/digital-library/library-comment/list/",
    params,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });
export const postcomment = (data) =>
  request({
    method: "post",
    url: "/prod-api/api/digital-library/library-comment",
    data,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });